package com.cat.observer;

/**
 * @author cat
 * @version 2025/5/27 19:02
 * @description 具体的观察者角色类
 * @since JDK17
 */

public class WeixinUser implements Observer {
    private String name;

    public WeixinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + " - " + message);
    }
}
